package com.jnevision.deptcollect.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author gavin
 * @since 2019-08-04
 */
@TableName("b_dept_collect")
public class DeptCollect extends Model<DeptCollect> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("dept_id")
    private Integer deptId;

    @TableField("people_num")
    private Integer peopleNum;

    @TableField("salary")
    private String salary;

    /**
     * yyyy-MM
     */
    @TableField("cycle")
    private String cycle;

    @TableField("create_time")
    private String createTime;

    @TableField("is_insurance")
    private Boolean insurance;

    public Boolean isInsurance() {
        return this.insurance;
    }

    public void setInsurance(Boolean insurance) {
        this.insurance = insurance;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getPeopleNum() {
        return peopleNum;
    }

    public void setPeopleNum(Integer peopleNum) {
        this.peopleNum = peopleNum;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeptCollect{" + "id=" + id + ", deptId=" + deptId + ", peopleNum=" + peopleNum + ", salary=" + salary
            + ", cycle=" + cycle + ", createTime=" + createTime + "}";
    }
}